board/BuR: simplify default IP-setup on B&R boards.
authorHannes Petermaier <[email protected]>
Tue, 25 Aug 2015 11:55:41 +0000 (13:55 +0200)
committerTom Rini <[email protected]>
Fri, 11 Sep 2015 18:05:34 +0000 (14:05 -0400)
commit6312e9aab8672a06caf5cbd7fd88b620d7122949
tree3935867dc46940467154cd83ed82509035c94d31
parent18a10d46f267057ede0490ddba71c106475b4eb1
board/BuR: simplify default IP-setup on B&R boards.

To simplify and having a common default IP-setup on all B&R boards we
introduce an environment variable "brdefaultip" which does following.

Test if ${ipaddr} is empty, if yes it set's up some defaults:
- ipaddr   : 192.168.60.1
- netmask  : 255.255.255.0
- gatewayip: 192.168.60.254
- serverip : 192.168.60.254

This environment is ran from CONFIG_PREBOOT.

All other "tricks" are dropped.

Signed-off-by: Hannes Schmelzer <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
board/BuR/kwb/board.c
include/configs/bur_am335x_common.h